<?php
namespace c\link;


/**
 * Description of a
 *
 * @author YeFng
 */
class a extends \m\tree
{
    
    var $t_p = 'link';
    var $table = 'link';
    var $auth_m = 'link';
    var $State = array('hide', 'publish');
    
    var $title = 'Link';
    
    function post($id) {
        $data = parent::post($id);
        if (!is_array($data['arr']))
            $data['arr'] = arr_decode($data['arr']);
        return $data;
    }
    function save($data, $id) {
        $data['arr'] = arr_encode($data['arr']);
        parent::save($data, $id);
    }
}
